package com.cqwshzj.framework.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cqwshzj.common.column.JobTypeColumn;

import java.io.Serializable;

/**
 * null
 * @TableName job_type
 */
@TableName(value ="job_type")
public class JobType implements Serializable {

    @TableId(value = "id", type = IdType.AUTO )
    private Integer id;

    @TableField(JobTypeColumn.JOB_TYPE)
    private Integer jobType;

    @TableField(JobTypeColumn.CLASS_NAME)
    private String className;

    @TableField(JobTypeColumn.JOB_DESC)
    private String jobDesc;

    @TableField(JobTypeColumn.PARAMS)
    private String params;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public JobType() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJobType() {
        return jobType;
    }

    public void setJobType(Integer jobType) {
        this.jobType = jobType;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "JobType{" +
                "id=" + id +
                ", jobType=" + jobType +
                ", className='" + className + '\'' +
                ", jobDesc='" + jobDesc + '\'' +
                ", params='" + params + '\'' +
                '}';
    }
}